<?php
require_once("../php/settings.inc.php");
if(file_exists(XINGLE_PROJECT ."/settings.inc.php")){
  require_once(XINGLE_PROJECT ."/settings.inc.php");
}
require_once(XINGLE ."/functions.inc.php");
require_once(XINGLE ."/classes/xingle2.class.php");

if(XINGLE_COMPATIBILITY){
  $url = (isset($_GET['xingle:url'])? $_GET['xingle:url'] : "/");
  $xingle = xingle2::getInstance();
  $xingle -> process(
  	$url,
    $_SERVER['REQUEST_METHOD']
  );
} else {
  xingle::incompatible();
}
?>